<!DOCTYPE html>
<html lang="en">
  <head>
    <title>SyncDSLUser Protocol Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
    <script src="../js/lunr.min.js" defer></script>
    <script src="../js/typeahead.jquery.js" defer></script>
    <script src="../js/jazzy.search.js" defer></script>
  </head>
  <body>
    <a name="//apple_ref/swift/Protocol/SyncDSLUser" class="dashAnchor"></a>
    <a title="SyncDSLUser Protocol Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">Quick 7.6.2 Docs</a> (84% documented)</p>
        <p class="header-right"><a href="https://github.com/Quick/Quick"><img src="../img/gh.png" alt="GitHub"/>View on GitHub</a></p>
        <div class="header-right">
          <form role="search" action="../search.json">
            <input type="text" placeholder="Search documentation" data-typeahead>
          </form>
        </div>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">Quick</a>
        <img id="carat" src="../img/carat.png" alt=""/>
        <a href="../Protocols.html">Protocols</a>
        <img id="carat" src="../img/carat.png" alt=""/>
        SyncDSLUser Protocol Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/AsyncBehavior.html">AsyncBehavior</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/AsyncExample.html">AsyncExample</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/AsyncExampleGroup.html">AsyncExampleGroup</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/AsyncSpec.html">AsyncSpec</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Behavior.html">Behavior</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Callsite.html">Callsite</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Example.html">Example</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ExampleBase.html">ExampleBase</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ExampleGroup.html">ExampleGroup</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ExampleMetadata.html">ExampleMetadata</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/QCKConfiguration.html">QCKConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/QuickConfiguration.html">QuickConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/QuickTestSuite.html">QuickTestSuite</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/_CallsiteBase">_CallsiteBase</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/c:@M@Quick@objc(cs)_CallsiteBase">_CallsiteBase</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/_ExampleBase">_ExampleBase</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/c:@M@Quick@objc(cs)_ExampleBase">_ExampleBase</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/_ExampleMetadataBase">_ExampleMetadataBase</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/c:@M@Quick@objc(cs)_ExampleMetadataBase">_ExampleMetadataBase</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Functions.html#/s:5Quick11currentSpecSo10XCTestCaseCSgyF">currentSpec()</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/AsyncDSLUser.html">AsyncDSLUser</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/SyncDSLUser.html">SyncDSLUser</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Structs/StopTest.html">StopTest</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/TestState.html">TestState</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Typealiases.html">Type Aliases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick24AfterExampleAsyncClosurea">AfterExampleAsyncClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick19AfterExampleClosurea">AfterExampleClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick30AfterExampleNonThrowingClosurea">AfterExampleNonThrowingClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick36AfterExampleWithMetadataAsyncClosurea">AfterExampleWithMetadataAsyncClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick31AfterExampleWithMetadataClosurea">AfterExampleWithMetadataClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick42AfterExampleWithMetadataNonThrowingClosurea">AfterExampleWithMetadataNonThrowingClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick22AfterSuiteAsyncClosurea">AfterSuiteAsyncClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick17AfterSuiteClosurea">AfterSuiteClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick28AfterSuiteNonThrowingClosurea">AfterSuiteNonThrowingClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick25AroundExampleAsyncClosurea">AroundExampleAsyncClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick20AroundExampleClosurea">AroundExampleClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick31AroundExampleNonThrowingClosurea">AroundExampleNonThrowingClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick37AroundExampleWithMetadataAsyncClosurea">AroundExampleWithMetadataAsyncClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick32AroundExampleWithMetadataClosurea">AroundExampleWithMetadataClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick43AroundExampleWithMetadataNonThrowingClosurea">AroundExampleWithMetadataNonThrowingClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/AsyncSpecBase">AsyncSpecBase</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick13AsyncSpecBasea">AsyncSpecBase</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick25BeforeExampleAsyncClosurea">BeforeExampleAsyncClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick20BeforeExampleClosurea">BeforeExampleClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick31BeforeExampleNonThrowingClosurea">BeforeExampleNonThrowingClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick37BeforeExampleWithMetadataAsyncClosurea">BeforeExampleWithMetadataAsyncClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick32BeforeExampleWithMetadataClosurea">BeforeExampleWithMetadataClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick43BeforeExampleWithMetadataNonThrowingClosurea">BeforeExampleWithMetadataNonThrowingClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick23BeforeSuiteAsyncClosurea">BeforeSuiteAsyncClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick18BeforeSuiteClosurea">BeforeSuiteClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick29BeforeSuiteNonThrowingClosurea">BeforeSuiteNonThrowingClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick14ExampleClosurea">ExampleClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick13ExampleFiltera">ExampleFilter</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/FileString">FileString</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick0A10Configurera">QuickConfigurer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick20SharedExampleClosurea">SharedExampleClosure</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:5Quick20SharedExampleContexta">SharedExampleContext</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>SyncDSLUser</h1>
              <div class="declaration">
                <div class="language">
                  
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">protocol</span> <span class="kt">SyncDSLUser</span></code></pre>

                </div>
              </div>
            <p>A protocol for defining the synchronous DSL usable from Quick synchronous specs.</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <div class="task-name-container">
                <a name="/beforeSuite"></a>
                <a name="//apple_ref/swift/Section/beforeSuite" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/beforeSuite"></a>
                  <h3 class="section-name"><span>beforeSuite</span>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE11beforeSuiteyyyyKScMYccFZ"></a>
                    <a name="//apple_ref/swift/Method/beforeSuite(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE11beforeSuiteyyyyKScMYccFZ">beforeSuite(_:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Defines a closure to be run prior to any examples in the test suite.
You may define an unlimited number of these closures, but there is no
guarantee as to the order in which they&rsquo;re run.</p>

<p>If the test suite crashes before the first example is run, this closure
will not be executed.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">beforeSuite</span><span class="p">(</span><span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick18BeforeSuiteClosurea">BeforeSuiteClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>closure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure to be run prior to any examples in the test suite.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/afterSuite"></a>
                <a name="//apple_ref/swift/Section/afterSuite" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/afterSuite"></a>
                  <h3 class="section-name"><span>afterSuite</span>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE10afterSuiteyyyyKScMYccFZ"></a>
                    <a name="//apple_ref/swift/Method/afterSuite(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE10afterSuiteyyyyKScMYccFZ">afterSuite(_:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Defines a closure to be run after all of the examples in the test suite.
You may define an unlimited number of these closures, but there is no
guarantee as to the order in which they&rsquo;re run.</p>

<p>If the test suite crashes before all examples are run, this closure
will not be executed.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">afterSuite</span><span class="p">(</span><span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick17AfterSuiteClosurea">AfterSuiteClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>closure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure to be run after all of the examples in the test suite.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/sharedExamples"></a>
                <a name="//apple_ref/swift/Section/sharedExamples" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/sharedExamples"></a>
                  <h3 class="section-name"><span>sharedExamples</span>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE14sharedExamples_7closureySS_yyctFZ"></a>
                    <a name="//apple_ref/swift/Method/sharedExamples(_:closure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE14sharedExamples_7closureySS_yyctFZ">sharedExamples(_:<wbr>closure:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Defines a group of shared examples. These examples can be re-used in several locations
by using the <code>itBehavesLike</code> function.</p>
<div class="aside aside-remark">
    <p class="aside-title">Remark</p>
    <p><code>sharedExamples</code> is untyped. Please use <code><a href="../Classes/Behavior.html">Behavior</a></code> instead, as it offers type-safety.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">sharedExamples</span><span class="p">(</span><span class="n">_</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>name</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The name of the shared example group. This must be unique across all shared example
groups defined in a test suite.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>closure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure containing the examples. This behaves just like an example group defined
using <code>describe</code> or <code>context</code>&ndash;the closure may contain any number of <code>beforeEach</code>
and <code>afterEach</code> closures, as well as any number of examples (defined using <code>it</code>).</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE14sharedExamples_7closureySS_ySDySSypGycctFZ"></a>
                    <a name="//apple_ref/swift/Method/sharedExamples(_:closure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE14sharedExamples_7closureySS_ySDySSypGycctFZ">sharedExamples(_:<wbr>closure:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Defines a group of shared examples. These examples can be re-used in several locations
by using the <code>itBehavesLike</code> function.</p>
<div class="aside aside-remark">
    <p class="aside-title">Remark</p>
    <p><code>sharedExamples</code> and the context passed in to it are untyped. Please use <code><a href="../Classes/Behavior.html">Behavior</a></code> instead, as it offers type-safety.</p>

</div>

<p>The closure takes a <code><a href="../Typealiases.html#/s:5Quick20SharedExampleContexta">SharedExampleContext</a></code> as an argument. This context is a function
that can be executed to retrieve parameters passed in via an <code>itBehavesLike</code> function.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">sharedExamples</span><span class="p">(</span><span class="n">_</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick20SharedExampleClosurea">SharedExampleClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>name</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The name of the shared example group. This must be unique across all shared example
groups defined in a test suite.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>closure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure containing the examples. This behaves just like an example group defined
using <code>describe</code> or <code>context</code>&ndash;the closure may contain any number of <code>beforeEach</code>
and <code>afterEach</code> closures, as well as any number of examples (defined using <code>it</code>).</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Example%20groups"></a>
                <a name="//apple_ref/swift/Section/Example groups" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Example%20groups"></a>
                  <h3 class="section-name"><span>Example groups</span>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE8describe_7closureySS_yyXEtFZ"></a>
                    <a name="//apple_ref/swift/Method/describe(_:closure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE8describe_7closureySS_yyXEtFZ">describe(_:<wbr>closure:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Defines an example group. Example groups are logical groupings of examples.
Example groups can share setup and teardown code.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">describe</span><span class="p">(</span><span class="n">_</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">closure</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>description</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An arbitrary string describing the example group.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>closure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that can contain other examples.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE7context_7closureySS_yyXEtFZ"></a>
                    <a name="//apple_ref/swift/Method/context(_:closure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE7context_7closureySS_yyXEtFZ">context(_:<wbr>closure:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Defines an example group. Equivalent to <code>describe</code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">context</span><span class="p">(</span><span class="n">_</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">closure</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/beforeEach"></a>
                <a name="//apple_ref/swift/Section/beforeEach" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/beforeEach"></a>
                  <h3 class="section-name"><span>beforeEach</span>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE10beforeEachyyyyKScMYccFZ"></a>
                    <a name="//apple_ref/swift/Method/beforeEach(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE10beforeEachyyyyKScMYccFZ">beforeEach(_:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Defines a closure to be run prior to each example in the current example
group. This closure is not run for pending or otherwise disabled examples.
An example group may contain an unlimited number of beforeEach. They&rsquo;ll be
run in the order they&rsquo;re defined, but you shouldn&rsquo;t rely on that behavior.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">beforeEach</span><span class="p">(</span><span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick20BeforeExampleClosurea">BeforeExampleClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>closure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure to be run prior to each example.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE10beforeEachyyyAA15ExampleMetadataCKScMYccFZ"></a>
                    <a name="//apple_ref/swift/Method/beforeEach(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE10beforeEachyyyAA15ExampleMetadataCKScMYccFZ">beforeEach(_:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Identical to Quick.DSL.beforeEach, except the closure is provided with
metadata on the example that the closure is being run prior to.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">beforeEach</span><span class="p">(</span><span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick32BeforeExampleWithMetadataClosurea">BeforeExampleWithMetadataClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/AfterEach"></a>
                <a name="//apple_ref/swift/Section/AfterEach" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/AfterEach"></a>
                  <h3 class="section-name"><span>AfterEach</span>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE9afterEachyyyyKScMYccFZ"></a>
                    <a name="//apple_ref/swift/Method/afterEach(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE9afterEachyyyyKScMYccFZ">afterEach(_:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Defines a closure to be run after each example in the current example
group. This closure is not run for pending or otherwise disabled examples.
An example group may contain an unlimited number of afterEach. They&rsquo;ll be
run in the order they&rsquo;re defined, but you shouldn&rsquo;t rely on that behavior.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">afterEach</span><span class="p">(</span><span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick19AfterExampleClosurea">AfterExampleClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>closure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure to be run after each example.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE9afterEachyyyAA15ExampleMetadataCKScMYccFZ"></a>
                    <a name="//apple_ref/swift/Method/afterEach(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE9afterEachyyyAA15ExampleMetadataCKScMYccFZ">afterEach(_:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Identical to Quick.DSL.afterEach, except the closure is provided with
metadata on the example that the closure is being run after.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">afterEach</span><span class="p">(</span><span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick31AfterExampleWithMetadataClosurea">AfterExampleWithMetadataClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/aroundEach"></a>
                <a name="//apple_ref/swift/Section/aroundEach" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/aroundEach"></a>
                  <h3 class="section-name"><span>aroundEach</span>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE10aroundEachyyyyycKScMYccFZ"></a>
                    <a name="//apple_ref/swift/Method/aroundEach(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE10aroundEachyyyyycKScMYccFZ">aroundEach(_:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Defines a closure to that wraps each example in the current example
group. This closure is not run for pending or otherwise disabled examples.</p>

<p>The closure you pass to aroundEach receives a callback as its argument, which
it MUST call exactly one for the example to run properly:</p>

<p>aroundEach { runExample in
doSomeSetup()
runExample()
doSomeCleanup()
}</p>

<p>This callback is particularly useful for test decartions that can’t split
into a separate beforeEach and afterEach. For example, running each example
in its own autorelease pool (provided by Task) requires aroundEach:</p>

<p>aroundEach { runExample in
autoreleasepool {
runExample()
}
checkObjectsNoLongerRetained()
}</p>

<p>You can also use aroundEach to guarantee proper nesting of setup and cleanup
operations in situations where their relative order matters.</p>

<p>An example group may contain an unlimited number of aroundEach callbacks.
They will nest inside each other, with the first declared in the group
nested at the outermost level.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">aroundEach</span><span class="p">(</span><span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick20AroundExampleClosurea">AroundExampleClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>closure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure that wraps around each example.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE10aroundEachyyyAA15ExampleMetadataC_yyctKScMYccFZ"></a>
                    <a name="//apple_ref/swift/Method/aroundEach(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE10aroundEachyyyAA15ExampleMetadataC_yyctKScMYccFZ">aroundEach(_:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Identical to Quick.DSL.aroundEach, except the closure receives metadata
about the example that the closure wraps.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">aroundEach</span><span class="p">(</span><span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick32AroundExampleWithMetadataClosurea">AroundExampleWithMetadataClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Examples"></a>
                <a name="//apple_ref/swift/Section/Examples" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Examples"></a>
                  <h3 class="section-name"><span>Examples</span>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE14justBeforeEachyyyyKScMYccFZ"></a>
                    <a name="//apple_ref/swift/Method/justBeforeEach(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE14justBeforeEachyyyyKScMYccFZ">justBeforeEach(_:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Defines a closure to be run prior to each example but after any beforeEach blocks.
This closure is not run for pending or otherwise disabled examples.
An example group may contain an unlimited number of justBeforeEach. They&rsquo;ll be
run in the order they&rsquo;re defined, but you shouldn&rsquo;t rely on that behavior.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">justBeforeEach</span><span class="p">(</span><span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick20BeforeExampleClosurea">BeforeExampleClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>closure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure to be run prior to each example and after any beforeEach blocks</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE2it_4file4line7closureySS_SSSuyyKScMYcctFZ"></a>
                    <a name="//apple_ref/swift/Method/it(_:file:line:closure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE2it_4file4line7closureySS_SSSuyyKScMYcctFZ">it(_:<wbr>file:<wbr>line:<wbr>closure:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Defines an example. Examples use assertions to demonstrate how code should
behave. These are like &ldquo;tests&rdquo; in XCTest.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">it</span><span class="p">(</span><span class="n">_</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">,</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick14ExampleClosurea">ExampleClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>description</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An arbitrary string describing what the example is meant to specify.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>closure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that can contain assertions.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>file</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The absolute path to the file containing the example. A sensible default is provided.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>line</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The line containing the example. A sensible default is provided.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Shared%20Examples"></a>
                <a name="//apple_ref/swift/Section/Shared Examples" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Shared%20Examples"></a>
                  <h3 class="section-name"><span>Shared Examples</span>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE13itBehavesLike_4file4lineySS_SSSutFZ"></a>
                    <a name="//apple_ref/swift/Method/itBehavesLike(_:file:line:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE13itBehavesLike_4file4lineySS_SSSutFZ">itBehavesLike(_:<wbr>file:<wbr>line:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Inserts the examples defined using a <code>sharedExamples</code> function into the current example group.
The shared examples are executed at this location, as if they were written out manually.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">itBehavesLike</span><span class="p">(</span><span class="n">_</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>name</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The name of the shared examples group to be executed. This must be identical to the
name of a shared examples group defined using <code>sharedExamples</code>. If there are no shared
examples that match the name given, an exception is thrown and the test suite will crash.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>file</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The absolute path to the file containing the current example group. A sensible default is provided.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>line</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The line containing the current example group. A sensible default is provided.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE13itBehavesLike_4file4line20sharedExampleContextySS_SSSuSDySSypGyctFZ"></a>
                    <a name="//apple_ref/swift/Method/itBehavesLike(_:file:line:sharedExampleContext:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE13itBehavesLike_4file4line20sharedExampleContextySS_SSSuSDySSypGyctFZ">itBehavesLike(_:<wbr>file:<wbr>line:<wbr>sharedExampleContext:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Inserts the examples defined using a <code>sharedExamples</code> function into the current example group.
The shared examples are executed at this location, as if they were written out manually.
This function also passes those shared examples a context that can be evaluated to give the shared
examples extra information on the subject of the example.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">itBehavesLike</span><span class="p">(</span><span class="n">_</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">,</span> <span class="nv">sharedExampleContext</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick20SharedExampleContexta">SharedExampleContext</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>name</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The name of the shared examples group to be executed. This must be identical to the
name of a shared examples group defined using <code>sharedExamples</code>. If there are no shared
examples that match the name given, an exception is thrown and the test suite will crash.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>sharedExampleContext</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that, when evaluated, returns key-value pairs that provide the
shared examples with extra information on the subject of the example.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>file</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The absolute path to the file containing the current example group. A sensible default is provided.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>line</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The line containing the current example group. A sensible default is provided.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE13itBehavesLike_4file4line7contextyAA8BehaviorCyqd__Gm_SSSuqd__yctlFZ"></a>
                    <a name="//apple_ref/swift/Method/itBehavesLike(_:file:line:context:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE13itBehavesLike_4file4line7contextyAA8BehaviorCyqd__Gm_SSSuqd__yctlFZ">itBehavesLike(_:<wbr>file:<wbr>line:<wbr>context:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Inserts the examples defined using a <code><a href="../Classes/Behavior.html">Behavior</a></code> into the current example group.
The shared examples are executed at this location, as if they were written out manually.
This function also passes a strongly-typed context that can be evaluated to give the shared examples extra information on the subject of the example.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="n">itBehavesLike</span><span class="o">&lt;</span><span class="kt">C</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">behavior</span><span class="p">:</span> <span class="kt"><a href="../Classes/Behavior.html">Behavior</a></span><span class="o">&lt;</span><span class="kt">C</span><span class="o">&gt;.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">,</span> <span class="nv">context</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">C</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>behavior</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The type of <code><a href="../Classes/Behavior.html">Behavior</a></code> class defining the example group to be executed.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>context</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that, when evaluated, returns an instance of <code><a href="../Classes/Behavior.html">Behavior</a></code>&lsquo;s context type to provide its example group with extra information on the subject of the example.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>file</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The absolute path to the file containing the current example group. A sensible default is provided.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>line</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The line containing the current example group. A sensible default is provided.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Pending"></a>
                <a name="//apple_ref/swift/Section/Pending" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Pending"></a>
                  <h3 class="section-name"><span>Pending</span>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE7pending_4file4line7closureySS_SSSuyyKctFZ"></a>
                    <a name="//apple_ref/swift/Method/pending(_:file:line:closure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE7pending_4file4line7closureySS_SSSuyyKctFZ">pending(_:<wbr>file:<wbr>line:<wbr>closure:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Defines an example or example group that should not be executed. Use <code>pending</code> to temporarily disable
examples or groups that should not be run yet.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">pending</span><span class="p">(</span><span class="n">_</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">,</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="k">throws</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>description</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An arbitrary string describing the example or example group.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>closure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that will not be evaluated.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Defocused"></a>
                <a name="//apple_ref/swift/Section/Defocused" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Defocused"></a>
                  <h3 class="section-name"><span>Defocused</span>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE9xdescribe_7closureySS_yyXEtFZ"></a>
                    <a name="//apple_ref/swift/Method/xdescribe(_:closure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE9xdescribe_7closureySS_yyXEtFZ">xdescribe(_:<wbr>closure:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Use this to quickly mark a <code>describe</code> closure as pending.
This disables all examples within the closure.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">xdescribe</span><span class="p">(</span><span class="n">_</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">closure</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE8xcontext_7closureySS_yyXEtFZ"></a>
                    <a name="//apple_ref/swift/Method/xcontext(_:closure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE8xcontext_7closureySS_yyXEtFZ">xcontext(_:<wbr>closure:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Use this to quickly mark a <code>context</code> closure as pending.
This disables all examples within the closure.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">xcontext</span><span class="p">(</span><span class="n">_</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">closure</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE3xit_4file4line7closureySS_SSSuyyKScMYcctFZ"></a>
                    <a name="//apple_ref/swift/Method/xit(_:file:line:closure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE3xit_4file4line7closureySS_SSSuyyKScMYcctFZ">xit(_:<wbr>file:<wbr>line:<wbr>closure:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Use this to quickly mark an <code>it</code> closure as pending.
This disables the example and ensures the code within the closure is never run.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">xit</span><span class="p">(</span><span class="n">_</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">,</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick14ExampleClosurea">ExampleClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE14xitBehavesLike_4file4line7contextyAA8BehaviorCyqd__Gm_SSSuqd__yctlFZ"></a>
                    <a name="//apple_ref/swift/Method/xitBehavesLike(_:file:line:context:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE14xitBehavesLike_4file4line7contextyAA8BehaviorCyqd__Gm_SSSuqd__yctlFZ">xitBehavesLike(_:<wbr>file:<wbr>line:<wbr>context:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Use this to quickly mark an <code>itBehavesLike</code> closure as pending.
This disables the example group defined by this behavior and ensures the code within is never run.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="n">xitBehavesLike</span><span class="o">&lt;</span><span class="kt">C</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">behavior</span><span class="p">:</span> <span class="kt"><a href="../Classes/Behavior.html">Behavior</a></span><span class="o">&lt;</span><span class="kt">C</span><span class="o">&gt;.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">,</span> <span class="nv">context</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">C</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE14xitBehavesLike_4file4lineySS_SSSutFZ"></a>
                    <a name="//apple_ref/swift/Method/xitBehavesLike(_:file:line:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE14xitBehavesLike_4file4lineySS_SSSutFZ">xitBehavesLike(_:<wbr>file:<wbr>line:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Use this to quickly mark an <code>itBehavesLike</code> closure as pending.
This disables the example group defined by this behavior and ensures the code within is never run.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">xitBehavesLike</span><span class="p">(</span><span class="n">_</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE14xitBehavesLike_4file4line20sharedExampleContextySS_SSSuSDySSypGyctFZ"></a>
                    <a name="//apple_ref/swift/Method/xitBehavesLike(_:file:line:sharedExampleContext:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE14xitBehavesLike_4file4line20sharedExampleContextySS_SSSuSDySSypGyctFZ">xitBehavesLike(_:<wbr>file:<wbr>line:<wbr>sharedExampleContext:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Use this to quickly mark an <code>itBehavesLike</code> closure as pending.
This disables the example group defined by this behavior and ensures the code within is never run.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">xitBehavesLike</span><span class="p">(</span><span class="n">_</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">,</span> <span class="nv">sharedExampleContext</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick20SharedExampleContexta">SharedExampleContext</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Focused"></a>
                <a name="//apple_ref/swift/Section/Focused" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Focused"></a>
                  <h3 class="section-name"><span>Focused</span>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE9fdescribe_7closureySS_yyXEtFZ"></a>
                    <a name="//apple_ref/swift/Method/fdescribe(_:closure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE9fdescribe_7closureySS_yyXEtFZ">fdescribe(_:<wbr>closure:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Use this to quickly focus a <code>describe</code> closure, focusing the examples in the closure.
If any examples in the test suite are focused, only those examples are executed.
This trumps any explicitly focused or unfocused examples within the closure&ndash;they are all treated as focused.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">fdescribe</span><span class="p">(</span><span class="n">_</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">closure</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE8fcontext_7closureySS_yyXEtFZ"></a>
                    <a name="//apple_ref/swift/Method/fcontext(_:closure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE8fcontext_7closureySS_yyXEtFZ">fcontext(_:<wbr>closure:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Use this to quickly focus a <code>context</code> closure. Equivalent to <code>fdescribe</code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">fcontext</span><span class="p">(</span><span class="n">_</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">closure</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE3fit_4file4line7closureySS_SSSuyyKScMYcctFZ"></a>
                    <a name="//apple_ref/swift/Method/fit(_:file:line:closure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE3fit_4file4line7closureySS_SSSuyyKScMYcctFZ">fit(_:<wbr>file:<wbr>line:<wbr>closure:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Use this to quickly focus an <code>it</code> closure, focusing the example.
If any examples in the test suite are focused, only those examples are executed.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">fit</span><span class="p">(</span><span class="n">_</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">,</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick14ExampleClosurea">ExampleClosure</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE14fitBehavesLike_4file4lineySS_SSSutFZ"></a>
                    <a name="//apple_ref/swift/Method/fitBehavesLike(_:file:line:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE14fitBehavesLike_4file4lineySS_SSSutFZ">fitBehavesLike(_:<wbr>file:<wbr>line:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Use this to quickly focus an <code>itBehavesLike</code> closure.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">fitBehavesLike</span><span class="p">(</span><span class="n">_</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE14fitBehavesLike_4file4line20sharedExampleContextySS_SSSuSDySSypGyctFZ"></a>
                    <a name="//apple_ref/swift/Method/fitBehavesLike(_:file:line:sharedExampleContext:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE14fitBehavesLike_4file4line20sharedExampleContextySS_SSSuSDySSypGyctFZ">fitBehavesLike(_:<wbr>file:<wbr>line:<wbr>sharedExampleContext:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Use this to quickly focus an <code>itBehavesLike</code> closure.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">fitBehavesLike</span><span class="p">(</span><span class="n">_</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">,</span> <span class="nv">sharedExampleContext</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick20SharedExampleContexta">SharedExampleContext</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:5Quick11SyncDSLUserPAAE14fitBehavesLike_4file4line7contextyAA8BehaviorCyqd__Gm_SSSuqd__yctlFZ"></a>
                    <a name="//apple_ref/swift/Method/fitBehavesLike(_:file:line:context:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:5Quick11SyncDSLUserPAAE14fitBehavesLike_4file4line7contextyAA8BehaviorCyqd__Gm_SSSuqd__yctlFZ">fitBehavesLike(_:<wbr>file:<wbr>line:<wbr>context:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Use this to quickly focus on <code>itBehavesLike</code> closure.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="n">fitBehavesLike</span><span class="o">&lt;</span><span class="kt">C</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">behavior</span><span class="p">:</span> <span class="kt"><a href="../Classes/Behavior.html">Behavior</a></span><span class="o">&lt;</span><span class="kt">C</span><span class="o">&gt;.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">file</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:5Quick10FileStringa">FileString</a></span> <span class="o">=</span> <span class="kd">#file</span><span class="p">,</span> <span class="nv">line</span><span class="p">:</span> <span class="kt">UInt</span> <span class="o">=</span> <span class="kd">#line</span><span class="p">,</span> <span class="nv">context</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">C</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2025 <a class="link" href="https://github.com/Quick/Quick" target="_blank" rel="external noopener">Quick Contributors</a>. All rights reserved. (Last updated: 2025-06-26)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.15.3</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</html>
